/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Healthcare Provider Agency HIPAA</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * abstDomain: A13717 (C-0-T13129-A13715-A13716-A13717-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getHealthcareProviderAgencyHIPAA()
 * @model extendedMetaData="name='HealthcareProviderAgencyHIPAA'"
 * @generated
 */
public enum HealthcareProviderAgencyHIPAA implements Enumerator {
	/**
	 * The '<em><b>2514C0400N</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_2514C0400N_VALUE
	 * @generated
	 * @ordered
	 */
	_2514C0400N(0, "_2514C0400N", "2514C0400N"),

	/**
	 * The '<em><b>2514H0200N</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_2514H0200N_VALUE
	 * @generated
	 * @ordered
	 */
	_2514H0200N(1, "_2514H0200N", "2514H0200N"),

	/**
	 * The '<em><b>2514H0201N</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_2514H0201N_VALUE
	 * @generated
	 * @ordered
	 */
	_2514H0201N(2, "_2514H0201N", "2514H0201N"),

	/**
	 * The '<em><b>2514H0300N</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_2514H0300N_VALUE
	 * @generated
	 * @ordered
	 */
	_2514H0300N(3, "_2514H0300N", "2514H0300N"),

	/**
	 * The '<em><b>2514N1101N</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_2514N1101N_VALUE
	 * @generated
	 * @ordered
	 */
	_2514N1101N(4, "_2514N1101N", "2514N1101N"),

	/**
	 * The '<em><b>2514P0906N</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_2514P0906N_VALUE
	 * @generated
	 * @ordered
	 */
	_2514P0906N(5, "_2514P0906N", "2514P0906N"),

	/**
	 * The '<em><b>2514V0001N</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_2514V0001N_VALUE
	 * @generated
	 * @ordered
	 */
	_2514V0001N(6, "_2514V0001N", "2514V0001N");

	/**
	 * The '<em><b>2514C0400N</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>2514C0400N</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_2514C0400N
	 * @model literal="2514C0400N"
	 * @generated
	 * @ordered
	 */
	public static final int _2514C0400N_VALUE = 0;

	/**
	 * The '<em><b>2514H0200N</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>2514H0200N</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_2514H0200N
	 * @model literal="2514H0200N"
	 * @generated
	 * @ordered
	 */
	public static final int _2514H0200N_VALUE = 1;

	/**
	 * The '<em><b>2514H0201N</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>2514H0201N</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_2514H0201N
	 * @model literal="2514H0201N"
	 * @generated
	 * @ordered
	 */
	public static final int _2514H0201N_VALUE = 2;

	/**
	 * The '<em><b>2514H0300N</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>2514H0300N</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_2514H0300N
	 * @model literal="2514H0300N"
	 * @generated
	 * @ordered
	 */
	public static final int _2514H0300N_VALUE = 3;

	/**
	 * The '<em><b>2514N1101N</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>2514N1101N</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_2514N1101N
	 * @model literal="2514N1101N"
	 * @generated
	 * @ordered
	 */
	public static final int _2514N1101N_VALUE = 4;

	/**
	 * The '<em><b>2514P0906N</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>2514P0906N</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_2514P0906N
	 * @model literal="2514P0906N"
	 * @generated
	 * @ordered
	 */
	public static final int _2514P0906N_VALUE = 5;

	/**
	 * The '<em><b>2514V0001N</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>2514V0001N</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_2514V0001N
	 * @model literal="2514V0001N"
	 * @generated
	 * @ordered
	 */
	public static final int _2514V0001N_VALUE = 6;

	/**
	 * An array of all the '<em><b>Healthcare Provider Agency HIPAA</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final HealthcareProviderAgencyHIPAA[] VALUES_ARRAY =
		new HealthcareProviderAgencyHIPAA[] {
			_2514C0400N,
			_2514H0200N,
			_2514H0201N,
			_2514H0300N,
			_2514N1101N,
			_2514P0906N,
			_2514V0001N,
		};

	/**
	 * A public read-only list of all the '<em><b>Healthcare Provider Agency HIPAA</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<HealthcareProviderAgencyHIPAA> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Healthcare Provider Agency HIPAA</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static HealthcareProviderAgencyHIPAA get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			HealthcareProviderAgencyHIPAA result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Healthcare Provider Agency HIPAA</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static HealthcareProviderAgencyHIPAA getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			HealthcareProviderAgencyHIPAA result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Healthcare Provider Agency HIPAA</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static HealthcareProviderAgencyHIPAA get(int value) {
		switch (value) {
			case _2514C0400N_VALUE: return _2514C0400N;
			case _2514H0200N_VALUE: return _2514H0200N;
			case _2514H0201N_VALUE: return _2514H0201N;
			case _2514H0300N_VALUE: return _2514H0300N;
			case _2514N1101N_VALUE: return _2514N1101N;
			case _2514P0906N_VALUE: return _2514P0906N;
			case _2514V0001N_VALUE: return _2514V0001N;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private HealthcareProviderAgencyHIPAA(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //HealthcareProviderAgencyHIPAA
